<?php /* Smarty version 2.6.18, created on 2010-03-08 08:53:39
         compiled from inquiries_ors.tpl */ ?>
<div id="main_content" width="100%">
<form name="MainQuery" method="POST" >
	<h1>ORS</h1>
	<table width="100%">
		<tr>
			<td>
				<table width="100%" class="blue">
					<tr>
						<td width="15%">
							<label for="view">&nbsp;Entity Type: </label>
						</td>
						<td>
							<select name="entity_type" id="entity_type" 
							onChange="doajaxAction('/admin/inqORSEntities/entity_type/'+document.MainQuery.entity_type.value,0,'entity')">
								<option value=""> --- </option>	
								<?php $_from = $this->_tpl_vars['orgtypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['orgtype']):
?>
								<option value="<?php echo $this->_tpl_vars['orgtype']['org_type']; ?>
"><?php echo $this->_tpl_vars['orgtype']['org_type']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>
							</select>
						</td>
					</tr>
					<tr>
						<td>
							<label for="entity">&nbsp;Entity: </label>
						</td>
						<td>
							<div id="entity">
									<select name="entity" onChange="">
										<option value=""> --- </option>	
									</select>
								</label>
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div id="bts" width="100%">
								<table width="100%">
									<tr>
										<td width="15%"><label for="batch">Batch Number:</label></td>
										<td>
											<select name="batch">
												<option value=""> --- </option>	
											</select>
										</td>
									</tr>
									<tr>
										<td><label for="tank">Tank Name:</label></td>
										<td>
											<select name="tank">
												<option value="-1"> --- </option>	
											</select>
										</td>
									</tr>
									<tr>
										<td><label for="specie">Specie Moid:</label></td>
										<td>
											<select name="specie">
												<option value="-1"> --- </option>	
											</select>
										</td>
									</tr>
								</table>
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="3" align="right">
							<input type="button" value="Go" name="Go" onclick="doajaxAction('/admin/inqORSShowList/batch/'+document.MainQuery.batch.value+'/tank/'+document.MainQuery.tank.value+'/specie/'+document.MainQuery.specie.value,0,'data_table')"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<div id="data_table"></div>
			</td>
		</tr>
	</table>
</form>
</div>